package com.wish233.wiliwilivideo.service;

import com.wish233.wiliwilivideo.domain.dto.history.CreateOrUpdateHistory;
import com.wish233.wiliwilivideo.domain.po.VideoViewHistory;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wish233.wiliwilivideo.domain.vo.VideoViewHistoryVO;

import java.util.List;

/**
* @author WHH
* @description 针对表【video_view_history(视频观看历史表)】的数据库操作Service
* @createDate 2025-03-28 14:11:52
*/
public interface VideoViewHistoryService extends IService<VideoViewHistory> {

    Boolean addOrUpdateHistory(CreateOrUpdateHistory createOrUpdateHistory);

    Long getVideoViewTime(Long videoId);

    List<VideoViewHistoryVO> listVideoViewVO(Long userId, int current, int pageSize);
}
